package com.cl.blog.web.client.notive;

import com.cl.blog.common.Result;
import com.cl.blog.entity.BNewNotice;
import com.cl.blog.service.BNewNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Author 付
 * @Date 2024-04-10 11:33
 * @Version 1.0
 * @description
 * @since 1.0
 */
@RestController
@RequestMapping("/user/notice")
public class NoticeController {
	@Autowired
	BNewNoticeService bNewNoticeService;

	@GetMapping("/list")
	public Result getList(HttpServletRequest request) {
		Object list = bNewNoticeService.selectAll(request);
		return Result.success(list);
	}
}
